home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / ggraph / ggraphdata.c < prev    next >
C/C++ Source or Header  |  1989-07-12  |  2KB  |  58 lines

  1. #include <stdio.h>
  2. #include <errno.h>
  3. #include "ggraph.h"
  4. #include "commands.h"
  5. #include "ggraphdefs.h"
  6.  
  7. char *commands[MAXCOMMAND] = {"xgr", "ygr", "xax", "yax", "xti", "yti",
  8.  "xtl", "ytl", "gti", "das", "xla", "yla", "tif", "dae", "xst", "yst",
  9. "lty", "lcu", "lof", "lsy", "dra", "lla", "llp", "sla","fra", "frt",
  10. "xgt", "ygt", "gtp", "ytp", "xtp", "tis", "xts", "yts", "lth", "typ",
  11. "xpr", "ypr", "syz", "ssw", "tft", "xft", "yft", "rea", "ver", "lox", 
  12. "loy", "log", "qui", "xfi", "yfi", "fir", "com", "cro", "crx", "cry",
  13. "leg", "leb", "les", "sle", "slh", "slf", "sls", "xtf", "ytf", "xtz",
  14. "ytz", "sxt", "syt", "llf", "lls", "xle", "yle", "sun"};
  15.  
  16. char *justify_names[] = { "BOTLEFT", "BOTRIGHT", "CENTCENT", 
  17.                  "", "", "", "", "", "", "", 
  18.                  "TOPLEFT", "TOPCENT", "TOPRIGHT", 
  19.                  "CENTLEFT", "CENTRIGHT", "BOTCENT" };
  20.  
  21. int ycharsz[5] = {0, 10, 14, 22, 30};
  22. int xcharsz[5] = {0, 6, 8, 10, 15};
  23. int descenders[5] = {0, 1, 3, 2, 6};
  24. struct agraph graph[MAXGRAPH];
  25.  
  26. float   graphx, graphy;        /* a point on the graph */
  27.  
  28. int     curline = -1;
  29. int     curgraph = -1;
  30. int     errno;
  31.  
  32. char    firstline[] = FIRSTLINE; /* first line of gremlin file */
  33. char    sfirstline[] = SFIRSTLINE; /* first line of gremlin file */
  34.  
  35. int     xgridf = TRUE;
  36. int     ygridf = TRUE;
  37. int     xaxisf = TRUE;
  38. int     yaxisf = TRUE;
  39. int     xtickf = TRUE;
  40. int     ytickf = TRUE;
  41. int     xticklf = TRUE;
  42. int     yticklf = TRUE;
  43. int     titlef = TRUE;
  44. int     framef = FALSE;
  45. int     symbsw = TRUE;
  46. int     crossxsw = FALSE;
  47. int     crossysw = FALSE;
  48. int     legendf = FALSE;
  49. int     legendbox = FALSE;
  50. int     legendside = TRUE;
  51.  
  52. FILE *outfile = NULL;        /* output file */
  53. FILE *fopen ();
  54.  
  55. int debug;            /* debbuging switch */
  56. char graphname[40];
  57. int version = SUN_GREMLIN;    /* we are for the suns */
  58.